﻿using System;
using DevExpress.XtraWaitForm;

namespace NHTClient
{
    public partial class NHTWait : WaitForm
    {
        //private Color transparentColor;

        public NHTWait()
        {
            InitializeComponent();
            this.progressPanel.AutoHeight = true;
        }

        #region Overrides

        public override void SetCaption(string caption)
        {
            base.SetCaption(caption);
            this.progressPanel.Caption = caption;
        }
        public override void SetDescription(string description)
        {
            base.SetDescription(description);
            this.progressPanel.Description = description;
        }
        public override void ProcessCommand(Enum cmd, object arg)
        {
            base.ProcessCommand(cmd, arg);
        }

        //protected override void DrawContent(GraphicsCache graphicsCache, DevExpress.Skins.Skin skin)
        //{
        //    DrawBackground(graphicsCache);
        //}
        //protected override void DrawTopElement(GraphicsCache graphicsCache, DevExpress.Skins.Skin skin)
        //{
        //    DrawBackground(graphicsCache);
        //}

        //protected void DrawBackground(GraphicsCache graphicsCache)
        //{
        //    graphicsCache.FillRectangle(graphicsCache.GetSolidBrush(transparentColor), ClientRectangle);
        //}

        #endregion

        public enum WaitFormCommand
        {
        }
    }
}